package com.tc.zigbee.zcl.command;

import java.util.LinkedList;
import java.util.List;

import com.tc.util.DataUtil;

public class GroupMemberResponse extends AbstractZclCommand{

	byte capacity;
	
	List<Short> membership = new LinkedList<Short>();
	public GroupMemberResponse(byte[] data){

		capacity = data[0];
		byte c = data[1];
		for(int i = 0; i < c; i++){
				byte[] ai = new byte[2];
				ai[0] = data[2 + i * 2];
				ai[1] = data[3 + i * 2];
				short mg = DataUtil.shortValue(ai);
				membership.add(mg);
			}
			
		
		
	}
	public byte getCapacity() {
		return capacity;
	}
	public List<Short> getMembership() {
		return membership;
	}
	
}
